@import "fontawesome-all.min";
@import "mobile/weui.min";
@import 'mobile/iconfont';

/**/

a,
button,
input,
textarea {
	-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

input:focus {
	outline: none;
}

body {
	-webkit-overflow-scrolling: touch;
	line-height: 1;
	line-height: 1.6;
}

html,
body,
#app {
	font-family: PingFang SC, Hiragino Sans GB, Arial, Microsoft YaHei, Helvetica;
	height: 100%;
	overflow: hidden;
}

* {
	box-sizing: border-box;
}

*:before,
*:after {
	box-sizing: inherit;
}

.clearfix:before {
	content: "";
	display: table;
}

.clearfix:after {
    content: "";
    display: table;
    clear: both;
}

._full {
    width: 100%;
    height: 100%;
}

._scroll {
    overflow: auto;
}

._ellipsis {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

._ellipsis-3 {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

._left {
    float: left;
}

._right {
    float: right;
}

._align-middle {
    vertical-align: middle;
}

._align-left {
    text-align: left;
}

._align-right {
    text-align: right;
}

._align-center {
    text-align: center;
}

.margin-top-0 {
    margin-top: 0;
}

.border-top-0 {
    border-top: 0;
}

.padding-top-1 {
    padding-top: 1px;
}

::-webkit-scrollbar { 
  //scroll滚动条设置
  width: 0px;
  height: 0px;
  background-color: #fff;  
}


/*1px线*/

._line-fine:not(:first-child)::before {
    content: "";
    position: absolute;
    width: 200%;
    left: 0;
    top: 0;
    transform: scale(.5);
    transform-origin: 0 0;
    -webkit-transform: scale(.5);
    -webkit-transform-origin: 0 0;
    background-color: #b7b7b7;
    height: 1px;
    z-index: 2;
}


/*消息气泡*/

._news-count {
    position: absolute;
    font-style: initial;
    font-family: PingFang SC, Hiragino Sans GB, Arial, Microsoft YaHei, Helvetica;
    right: -9px;
    top: -5px;
    z-index: 2;
    padding: 0 4px;
    width: auto;
    min-width: 18px;
    height: 18px;
    line-height: 18px;
    border-radius: 9px;
    color: #ffffff;
    text-align: center;
    font-size: 14px;
    background-color: #f43531;
}

.app-footer ._news-count {
    left: 100%;
    margin-left: -10px;
    right: initial;
}

._news-dot {
    position: absolute;
    right: -3px;
    top: -3px;
    width: 10px;
    height: 10px;
    z-index: 2;
    border-radius: 50%;
    color: #ffffff;
    text-align: center;
    background-color: red;
    background-color: #f43531;
    font-size: 0;
}


/*weui*/

.weui_cells_only::before {
    left: 15px;
}


/*cell 箭头*/

.weui_select_before .weui_cell_hd::before,
.weui_panel_access .weui_panel_ft::after,
.weui_cells_access .weui_cell_ft::after {
    height: 11px;
    width: 11px;
    vertical-align: middle;
}


/*weui end*/


/*
    router-view -> transition="cover"
    cover开头的 是router-view过渡切换是公用的样式
    _cover-* 是会被cover 影响的元素
*/

.cover-transition {
    opacity: 1;
    transition: .35s opacity ease;
}

.cover-enter,
.cover-leave {
    opacity: .98;
}


/*initial route transition 1*/

._cover-top {
    position: relative;
    z-index: 2;
    overflow: hidden;
    height: 45px;
    padding: 0 15px 0 10px;
    line-height: 45px;
    background: linear-gradient(to bottom, #303036, #3c3b40);
    opacity: 1;
    color: #ffffff;
    user-select: none;
    -webkit-user-select: none;
    transition: .22s all ease;
}


/*initial route transition 2*/

._cover-top .top-title {
    transition: .2s all ease;
}


/*initial route transition 3*/

._cover-content {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    transition: .2s all ease-in-out;
    opacity: 1;
    transform: translate3d(0%, 0, 0);
    background-color: #efeff4;
    box-shadow: 0px 0 41px rgba(0, 0, 0, .1);
}


/*enter ,leaver*/


/*route transition 1*/

.cover-enter ._cover-top,
.cover-leave ._cover-top {
    opacity: 0;
}


/*route transition 2*/

.cover-enter ._cover-top .top-title,
.cover-leave ._cover-top .top-title {
    opacity: 0;
    transform: translate3d(50%, 0, 0);
}


/*route transition 3*/

.cover-enter ._cover-content {
    transform: translate3d(80%, 0, 0);
}

.cover-leave ._cover-content {
    transition: .25s all ease;
    transform: translate3d(100%, 0, 0);
}


/*
    component- 开头的 是router-view最外层的组件元素
*/

[class*="component-"] {}


/* 保证next page 能覆盖住 current page */

._full_inner {
    position: relative;
    height: 100%;
    z-index: 5;
}

._full_router {
    position: absolute;
    z-index: 10;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
}


/* 子路由被激活后应用的样式 */

._effect {
    opacity: 1;
    transition: .3s all ease;
}

._effect--30 {
    transform: translate3d(-30%, 0, 0);
}

._effect--50 {
    opacity: 0;
    transform: translate3d(-50%, 0, 0);
}


/* components */


/*top-handle.vue*/

._cover-top .top-back {
    max-width: 85px;
    float: left;
}

._cover-top .top-back:active {
    color: #bbbbbb;
}
._cover-top .top-back .icon-return-arrow{
    display: flex;
    justify-content: center;
    align-items: center;
}
._cover-top .top-back .iconfont {}

._cover-top .top-back .iconfont:before {
    font-size: 20px;
    vertical-align: middle;
}

._cover-top .top-title {
    padding: 0 8px;
    text-align: center;
    overflow: hidden;
    font-size: 18px;
    justify-content: center;
    text-align: center;
}

._cover-top .top-title > p {
    display: flex;
    justify-content: center;
    align-items: center;
}

._cover-top .top-title > p .top-title__text {
    text-align: right;
    overflow: hidden;
}

._cover-top .top-title > p .top-title__num {
    flex-shrink: 0;
}

._cover-top .top-title > p .icon-mute {
    flex-basis: 18px;
}

._cover-top .top-title .icon-mute {
    font-size: 12px;
    color: #878689;
    vertical-align: bottom;
}

._cover-top .top-other {
    height: 100%;
    max-width: 75px;
    min-width: 50px;
    width: auto;
    float: right;
}

._cover-top .top-other .iconfont {
  font-size: 24px;
}

.component-chat-dialogue {
  font-size: .3rem;
}

.dialogue-section {
  width: 100%;
  height: auto;
}

.dialogue-section-inner {
  width: 100%;
  padding: 0 10px;
  overflow: auto;

  .dialogue-row {
    display: flex;
    flex-direction: row;
    align-items: center;

    .avatar {
      width: 45px;
      height: 45px;
      border-radius: 5px;
    }
  }
  .dialogue-row--others {
    justify-content: flex-start;
  }
  .dialogue-row--self {
    justify-content: flex-end;
  }
	
	.dialogue-item {
    height: auto;
    float: left;
    margin: 10px 0;
    padding: 8px;
    table-layout: fixed;
    word-break: break-all;
    position: relative;
    background: #ffffff;
    border-radius: 5px;
  }
  .dialogue-item:before {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    left: 15px;
    top: -20px;
    border: 10px solid;
    border-color: transparent transparent #989898 transparent;
  }
  .dialogue-item:after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    left: 17px;
    top: -16px;
    border: 8px solid;
    border-color: transparent transparent #ffffff transparent;
  }
  .dialogue-item--others {
    display: inline-block;
    margin-left: 20px;
    max-width: 75%;
    position: relative;
    background: #ffffff;
  }
  .dialogue-item--others:before {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    top: 9px;
    bottom: auto;
    left: -10px;
    border-width: 9px 10px 9px 0;
    border-color: transparent;
  }
  .dialogue-item--others:after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    top: 10px;
    bottom: auto;
    left: -8px;
    border-width: 8px 9px 8px 0;
    border-color: transparent #ffffff;
  }
  .dialogue-item--time {
    text-align: center;
    width: 100%;
    height: auto;
    float: left;
    margin: 10px 0;
    padding: 8px;
  }
  .dialogue-item--self {
    float: right;
    margin-right: 20px;
    max-width: 75%;
    background: #bced50;
  }
  .dialogue-item--self:before {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    top: 9px;
    bottom: auto;
    left: auto;
    right: -10px;
    border-width: 9px 0 9px 10px;
    border-color: transparent;
  }
  .dialogue-item--self:after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    top: 10px;
    bottom: auto;
    left: auto;
    right: -8px;
    border-width: 8px 0 8px 9px;
    border-color: transparent #bced50;
  }
}

.dialogue-footer {
  width: 100%;
  position: fixed;
  bottom: 0;
  left: 0;
  height: 50px;
}

/*dialogue-bar*/

.component-dialogue-bar {
	position: relative;
	height: 100%;
	padding-left: 50px;
}

.component-dialogue-bar .dialogue-item {
	position: absolute;
	height: 50px;
	bottom: 0;
	left: 0;
	width: 100%;
	transition: .25s all ease;
	background-color: #fdfdfd;
}

.component-dialogue-bar .dialogue-item::before {
	content: "";
	position: absolute;
	width: 200%;
	left: 0;
	top: 0;
	transform: scale(.5);
	transform-origin: 0 0;
	-webkit-transform: scale(.5);
	-webkit-transform-origin: 0 0;
	background-color: #b7b7b7;
	height: 1px;
	z-index: 2;
}

.component-dialogue-bar .dialogue-item.transition-dialogue-down {
	bottom: -50px;
}

.left-slide-type {
	float: left;
	width: 50px;
	height: 100%;
	padding: 5px 0;
	text-align: center;
	font-size: 30px;
	line-height: 40px;
	color: #7d7e83;
	position: relative;
}


/*person*/

.component-dialogue-bar-person {
	overflow: hidden;
	padding: 5px 10px;
	height: 100%;
	flex-grow: 1;
	flex-basis: 200px;
	display: flex;
	justify-content: flex-start;
	align-items: flex-start;
	position: relative;
	background-color: #ffffff;
}

.component-dialogue-bar-person::before {
	content: "";
	position: absolute;
	width: 200%;
	left: 0;
	top: 0;
	transform: scale(.5);
	transform-origin: 0 0;
	-webkit-transform: scale(.5);
	-webkit-transform-origin: 0 0;
	background-color: #b7b7b7;
	height: 1px;
	z-index: 2;
}

.component-dialogue-bar .component-dialogue-bar-person::before {
	display: none;
}

.component-dialogue-bar-person .iconfont {
	color: #7d7e83;
	flex-basis: 40px;
	width: 40px;
	padding: 0 3px;
	font-size: 30px;
	flex-grow: 0;
	vertical-align: middle;
	line-height: 40px;
	padding: 0 4px;
}

.chat-way {
	vertical-align: middle;
	padding: 4px 0px;
	height: 100%;
	flex-grow: 1;
	flex-basis: 200px;
}

.chat-way .chat-say {
	display: flex;
	justify-content: center;
	align-items: center;
	border-radius: 6px;
	overflow: hidden;
	padding: 0 10px;
	width: 200%;
	height: 200%;
	color: #565656;
	border: 1px solid #7d7e83;
	transform: scale(.5);
	transform-origin: 0 0;
	font-size: 30px;
}

.chat-way .chat-say_touched {
	background-color: #c6c7ca;
}

.chat-way .two {
	display: none;
}

.chat-way .chat-say_touched .two {
	display: block;
}

.chat-way .chat-say_touched .one {
	display: none;
}

.chat-way .chat-txt {
	border-radius: 6px;
	overflow: hidden;
	padding: 0 10px;
	width: 200%;
	height: 200%;
	border: 1px solid #7d7e83;
	transform: scale(.5);
	transform-origin: 0 0;
	font-size: 30px;
}


/*public公众号*/

.component-dialogue-bar-public {
	height: 100%;
	display: flex;
	position: relative;
	overflow: hidden;
}

.component-dialogue-bar-public li {
	padding: 0 2px;
	overflow: hidden;
	flex-grow: 1;
	flex-shrink: 0;
	line-height: 50px;
	flex-basis: 0;
	display: flex;
	justify-content: center;
	align-items: center;
	position: relative;
}

.component-dialogue-bar-public li .iconfont {
	font-size: 12px;
}

.component-dialogue-bar-public li:not(:last-child)::before {
	content: "";
	position: absolute;
	right: 0;
	top: 0;
	transform-origin: 0 0;
	transform: scale(.5);
	height: 200%;
	border-right: 1px solid #b7b7b7;
}

.chat-btn {
    padding: 8px 10px;
    margin: 4px;
    border: 0;
    background-color: #b5c4b1;
}

/*tips*/

.recording {
	position: fixed;
	left: 50%;
	top: 45%;
	transform: translate(-50%, -50%);
	width: 140px;
	height: 140px;
	padding: 5px;
	background-color: rgba(0, 0, 0, .5);
	color: #ffffff;
	border-radius: 5px;
	font-size: 14px;
	text-align: center;
}

.recording-voice {
	// display: none;
}

.recording-voice .voice-inner {
	display: flex;
	justify-content: center;
	align-items: center;
	height: 110px;
}

.voice-inner .voice-icon {
	width: 55px;
	height: 90px;
	background: url(../images/recording-bkg.png) no-repeat center center;
	background-size: contain;
}

.voice-inner .voice-volume {
	width: 30px;
	height: 55px;
}

.voice-inner .voice-volume span {
	display: block;
	height: 2px;
	margin-top: 4px;
	min-width: 8px;
	float: left;
	clear: both;
	animation-iteration-count: infinite;
	animation-timing-function: linear;
	animation-duration: 2000ms;
	background-color: #e4e4e5;
	/* opacity: 0 ; */
}

.voice-inner .voice-volume span:nth-child(1) {
	width: 24px;
	visibility: hidden;
}

.voice-inner .voice-volume span:nth-child(2) {
	width: 22px;
}

.voice-inner .voice-volume span:nth-child(3) {
	width: 20px;
}

.voice-inner .voice-volume span:nth-child(4) {
	width: 18px;
}

.voice-inner .voice-volume span:nth-child(5) {
	width: 16px;
}

.voice-inner .voice-volume span:nth-child(6) {
	width: 14px;
}

.voice-inner .voice-volume span:nth-child(7) {
	width: 12px;
}

.voice-inner .voice-volume span:nth-child(8) {
	width: 10px;
}

.voice-inner .voice-volume span:nth-child(9) {
	width: 8px;
}


/**/

.recording-cancel {
	// display: none;
}

.recording-cancel p {
	border-radius: 3px;
	background-color: #9d383e;
}

.cancel-inner {
	width: 110px;
	height: 110px;
	margin: 0 auto;
	background-image: url(../images/record-cancel.png);
	background-repeat: no-repeat;
	background-position: center center;
	background-size: contain;
}

.invites-success {
  background-image: image-url("invites_success_sg.png");
  background-repeat: no-repeat;
  background-size: cover;
  width: 100%;
  height: calc(100vh);
  display: none;
}

.invites-bg {
  background-image: image-url("invites_bg.png");
  background-repeat: no-repeat;
  background-size: cover;
  width: 100%;
  height: calc(100vh);
  display: flex;
  flex-direction: column;
  justify-content: center;

  .invites_input {
    margin-top: 7rem;
    margin-left: .4rem;
    margin-right: .4rem;
    background-color: #ffffff;
    border-radius: 30px;
    height: 1.2rem;
    display: flex;
    align-items: center;

    input {
      width: 100%;
      margin-left: .35rem;
      margin-right: .35rem;
      height: 1rem;
      font-size: .5rem;
      border: 0;
    }
  }

  .invites_button {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
  
    img {
      height: 1.2rem;
    }
  }
}

.scratch-body {
  width: 100%;
  height: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-image: image-url("scratch_bg.png");
  background-repeat: repeat;
  background-size: contain;

  h3 {
    font-size: .3rem;
  }
}

#scratch-cards {
  position: relative;
  width: 7rem;
  height: 1.5rem;
}

#scratch_result {
  width: 7rem;
  height: 1.5rem;
  color: red;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-size: 25px;
  font-weight: bold;
  background-color: #ffffff;
}

#scratch {
  position: absolute;
  left: 0;
  top: 0;
  width: 7rem;
  height: 1.5rem;
  border-radius: 0.3rem;
  border: solid .2rem #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
}
